# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-lua
pkgver=0.2.0
pkgrel=0
pkgdesc="Lua grammar for tree-sitter"
url="https://github.com/tree-sitter-grammars/tree-sitter-lua"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v$pkgver/tree-sitter-lua-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
184734b9c1a2ba5529964173c6aeb4813ef3cfb23e5c8c651719a39e1ac794a85a845d5dc881b585a44b268136fc9367f80550bc9df7f5b39a743eb0ade34473  tree-sitter-lua-0.2.0.tar.gz
"
